#include <stdio.h>
#include <time.h>
#include <stdlib.h>

void show_time(time_t timeVal)
{
    char *ptime;

    ptime = ctime(&timeVal);    // get the time string

    printf("%s",ptime);

}

int main()
{
    time_t t; 

    time(&t);           // get the current time

    show_time(t);

    return 0;
}

